Contents | Index | < Browse | Browse >

LETTERputcULETTER Puts a character into a file.

Overview
#include <stdio.h>

r = putc(ch,f);

int r;
int ch;
FILE *f;

Portability
ANSI

Description
This function writes the character "ch" into the file "f".

Returns
The character written or EOF if an error occured.

See also
fputc